home *** CD-ROM | disk | FTP | other *** search
/ Let's Discover Texas! / Let's Discover Texas!.iso / pc / FILES / FUND.dxr / 00101_chooseNextSetup.ls < prev    next >
Encoding:
Text File  |  2001-01-04  |  3.5 KB  |  145 lines

  1. global nextSymNum, rightChoice, choiceName, symName, totalDone, animalDone, beverageDone, birdDone, boatDone, danceDone, fishDone, flagDone, flowerDone, fossilDone, insectDone, mottoDone, sealDone, shellDone, treeDone
  2.  
  3. on exitFrame me
  4.   if totalDone < 14 then
  5.     if totalDone = 13 then
  6.       sprite(13).visible = 0
  7.       sprite(14).visible = 1
  8.     else
  9.       sprite(13).visible = 1
  10.       sprite(14).visible = 0
  11.     end if
  12.     nextSymNum = random(14)
  13.     case nextSymNum of
  14.       1:
  15.         if animalDone <> 1 then
  16.           sprite(41).visible = 1
  17.           rightChoice = 21
  18.           choiceName = "AnimalSuck"
  19.           symName = "Animal"
  20.         else
  21.           go(the frame)
  22.         end if
  23.       2:
  24.         if beverageDone <> 1 then
  25.           sprite(42).visible = 1
  26.           rightChoice = 22
  27.           choiceName = "BeverageSuck"
  28.           symName = "Beverage"
  29.         else
  30.           go(the frame)
  31.         end if
  32.       3:
  33.         if birdDone <> 1 then
  34.           sprite(43).visible = 1
  35.           rightChoice = 23
  36.           choiceName = "BirdSuck"
  37.           symName = "Bird"
  38.         else
  39.           go(the frame)
  40.         end if
  41.       4:
  42.         if boatDone <> 1 then
  43.           sprite(44).visible = 1
  44.           rightChoice = 24
  45.           choiceName = "BoatSuck"
  46.           symName = "Boat"
  47.         else
  48.           go(the frame)
  49.         end if
  50.       5:
  51.         if danceDone <> 1 then
  52.           sprite(45).visible = 1
  53.           rightChoice = 25
  54.           choiceName = "DanceSuck"
  55.           symName = "Dance"
  56.         else
  57.           go(the frame)
  58.         end if
  59.       6:
  60.         if fishDone <> 1 then
  61.           sprite(46).visible = 1
  62.           rightChoice = 26
  63.           choiceName = "FishSuck"
  64.           symName = "Fish"
  65.         else
  66.           go(the frame)
  67.         end if
  68.       7:
  69.         if flagDone <> 1 then
  70.           sprite(47).visible = 1
  71.           rightChoice = 27
  72.           choiceName = "FlagSuck"
  73.           symName = "Flag"
  74.         else
  75.           go(the frame)
  76.         end if
  77.       8:
  78.         if flowerDone <> 1 then
  79.           sprite(48).visible = 1
  80.           rightChoice = 28
  81.           choiceName = "FlowerSuck"
  82.           symName = "Flower"
  83.         else
  84.           go(the frame)
  85.         end if
  86.       9:
  87.         if fossilDone <> 1 then
  88.           sprite(49).visible = 1
  89.           rightChoice = 29
  90.           choiceName = "FossilSuck"
  91.           symName = "Fossil"
  92.         else
  93.           go(the frame)
  94.         end if
  95.       10:
  96.         if insectDone <> 1 then
  97.           sprite(50).visible = 1
  98.           rightChoice = 30
  99.           choiceName = "InsectSuck"
  100.           symName = "Insect"
  101.         else
  102.           go(the frame)
  103.         end if
  104.       11:
  105.         if mottoDone <> 1 then
  106.           sprite(51).visible = 1
  107.           rightChoice = 31
  108.           choiceName = "MottoSuck"
  109.           symName = "Motto"
  110.         else
  111.           go(the frame)
  112.         end if
  113.       12:
  114.         if sealDone <> 1 then
  115.           sprite(52).visible = 1
  116.           rightChoice = 32
  117.           choiceName = "SealSuck"
  118.           symName = "Seal"
  119.         else
  120.           go(the frame)
  121.         end if
  122.       13:
  123.         if shellDone <> 1 then
  124.           sprite(53).visible = 1
  125.           rightChoice = 33
  126.           choiceName = "ShellSuck"
  127.           symName = "Shell"
  128.         else
  129.           go(the frame)
  130.         end if
  131.       14:
  132.         if treeDone <> 1 then
  133.           sprite(54).visible = 1
  134.           rightChoice = 34
  135.           choiceName = "TreeSuck"
  136.           symName = "Tree"
  137.         else
  138.           go(the frame)
  139.         end if
  140.     end case
  141.   else
  142.     go(marker("Done"))
  143.   end if
  144. end
  145.